package com.zfast.spring5.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * t_sys_user
 *
 * @author
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity//映射jpa
@Table(name = "t_sys_user")//没有具体映射会自己生成;自动大小写转_
public class TSysUser implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "id")//@ApiModelProperty("id")
    private String id;

    @Column(name = "create_time")
    private LocalDateTime create_time;
    @Column(name = "email")
    private String email;
    @Column(name = "login_name")
    private String login_name;
    @Column(name = "name")
    private String name;
    @Column(name = "password")
    private String password;
    @Column(name = "phone")
    private String phone;
    @Column(name = "shop_id")
    @JsonProperty(value = "shop_id")//mvc的映射
    //private String shop_id;
    private String shopId;
    @Column(name = "state")
    private String state;
    @Column(name = "store_id")
    private String store_id;
    @Column(name = "departid")
    private String departid;
    @Column(name = "departName")
    private String departName;
    /*@Column(name = "depart_name")
    private String depart_name;*/ //不可取分
}